package com.lcz.wanandroid.base;

import android.app.Application;
import android.support.v7.app.AppCompatDelegate;

import com.tencent.bugly.crashreport.CrashReport;
import com.umeng.commonsdk.UMConfigure;


/**
 * Created by asus on 2019/3/5.
 */

public class BaseApp extends Application {
    private static BaseApp sBaseApp;
    //默认不是夜间模式
    public static int mMode = AppCompatDelegate.MODE_NIGHT_NO;

    @Override
    public void onCreate() {
        super.onCreate();
        sBaseApp = this;
        UMConfigure.init(this, "5cd56f2b0cafb2395b000485", "Umeng", UMConfigure.DEVICE_TYPE_PHONE, "");
        CrashReport.initCrashReport(getApplicationContext(), "262ff725c6", false);
    }

    public static BaseApp getInstance(){
        return sBaseApp;
    }

}
